/**
 * Copyright(c) 2014 Xunton Solutions
 *
 * History:
 *   15-4-15 下午4:10 Created by dwzhang
 */
package com.jade.bss.base.customer;

import java.util.Date;
import javax.persistence.*;

import com.jade.journal.JournalEntity;

/**
 * 客户登录日志。
 *
 * @author <a href="mailto:dwzhang@xunton.com">dwzhang</a> 
 * @version 1.0 15-4-15 下午4:10
 */
@Entity
@Table (name = "BSS_JOURNAL_CUSTOMER_LOGIN")
public class LoginJournal extends JournalEntity
{
    public static final String NAME = "journal_customer_login";
    @Id
    @GeneratedValue (generator = "SEQ_BSS_JOURNAL_CUSTOMER_LOGIN")
    @SequenceGenerator (name = "SEQ_BSS_JOURNAL_CUSTOMER_LOGIN", sequenceName = "SEQ_BSS_JOURNAL_CUSTOMER_LOGIN")
    private long id;
    @Column (name = "customer_id", updatable = false)
    private long customerId;
    @Column (name = "customer_name", nullable = false, length = 32, updatable = false)
    private String customerName;
    @Column (name = "login_mode", length = 32, updatable = false)
    private String loginMode;
    @Column (name = "client_type", length = 64, updatable = false)
    private String clientType;
    @Column (name = "client_address", length = 64, updatable = false)
    private String clientAddress;
    @Column (name = "user_agent", length = 256, updatable = false)
    private String userAgent;
    @Column (name = "login_result", length = 64, updatable = false)
    private boolean loginResult = true;
    @Column (name = "login_remark", length = 256, updatable = false)
    private String loginRemark;
    @Column (name = "login_date", nullable = false, updatable = false)
    private Date loginDate;

    public LoginJournal()
    {
        super(NAME);
    }

    public long getId()
    {
        return id;
    }

    public void setId(long id)
    {
        this.id = id;
    }

    public long getCustomerId()
    {
        return customerId;
    }

    public void setCustomerId(long customerId)
    {
        this.customerId = customerId;
    }

    public String getCustomerName()
    {
        return customerName;
    }

    public void setCustomerName(String customerName)
    {
        this.customerName = customerName;
    }

    public String getLoginMode()
    {
        return loginMode;
    }

    public void setLoginMode(String loginMode)
    {
        this.loginMode = loginMode;
    }

    public String getClientType()
    {
        return clientType;
    }

    public void setClientType(String clientType)
    {
        this.clientType = clientType;
    }

    public String getClientAddress()
    {
        return clientAddress;
    }

    public void setClientAddress(String clientAddress)
    {
        this.clientAddress = clientAddress;
    }

    public String getUserAgent()
    {
        return userAgent;
    }

    public void setUserAgent(String userAgent)
    {
        this.userAgent = userAgent;
    }

    public boolean isLoginResult()
    {
        return loginResult;
    }

    public void setLoginResult(boolean loginResult)
    {
        this.loginResult = loginResult;
    }

    public String getLoginRemark()
    {
        return loginRemark;
    }

    public void setLoginRemark(String loginRemark)
    {
        this.loginRemark = loginRemark;
    }

    public Date getLoginDate()
    {
        return loginDate;
    }

    public void setLoginDate(Date loginDate)
    {
        this.loginDate = loginDate;
    }
}
